<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@page contentType="text/html" pageEncoding="UTF-8"%>

<jsp:useBean id="inhoud" scope="application" class="models.Bean" />   
<jsp:setProperty name="inhoud" property="language" value="<%= models.Bean.getLanguage()%>" />

<div id="floatingMenu">                    
                    <h2>
                        <jsp:setProperty name="inhoud" property="key" value="AssignedCourses" />
                        <jsp:getProperty name="inhoud" property="key" />
                    </h2>
                    <p class="note">
                        <jsp:setProperty name="inhoud" property="key" value="ClickToView" />
                        <jsp:getProperty name="inhoud" property="key" />
                    </p>
                    <div id="floatingMenuContent">
                        <c:choose>             
                            <c:when test="${not empty courses}">
                                <ul id="listCourses">
                                    <c:forEach var="course" items="${courses}">
                                        <li>
                                            <a href="/description?id=${course.courseID}">${course.getName()}</a>
                                        </li>
                                    </c:forEach>
                                </ul>
                            </c:when>
                            <c:otherwise>
                                <jsp:setProperty name="inhoud" property="key" value="NoCoursesAssigned" />
                                <jsp:getProperty name="inhoud" property="key" />
                            </c:otherwise>
                        </c:choose>
                    </div>
                </div>     